package com.zlzlib.manager.bean.dto;

import com.zlzlib.log.bean.dto.ReqLogDto;
import com.zlzlib.log.bean.enums.LogType;
import com.zlzlib.vuePage.annotation.data.FormDataEnumField;
import com.zlzlib.vuePage.annotation.form.FormBaseField;
import com.zlzlib.vuePage.annotation.form.FormInputField;
import com.zlzlib.vuePage.annotation.form.FormInputNumberField;
import com.zlzlib.vuePage.annotation.form.FormSelectEnumField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @DateTime: 2023/3/9 17:35
 * @Author zlz
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LogSystemDto extends ReqLogDto {
    /**
     * 日志类型
     */
    @FormBaseField(title = "类型", hint = "---------------")
    @FormSelectEnumField(dataField = @FormDataEnumField(dataClass = LogType.class, addEmpty = true))
    private String logType;
    /**
     * 时间范围（分钟为单位）
     */
    @FormBaseField(title = "现在之前")
    @FormInputNumberField(step = 1, unit = "(分)", max = 720)
    private int domain;
    /**
     * 客户端ip
     */
    @FormBaseField(title = "客户ip")
    @FormInputField()
    private String ip;
    /**
     * 线程
     */
    @FormBaseField(title = "线程")
    @FormInputField()
    private String thread;
    /**
     * 请求类
     */
    @FormBaseField(title = "类名")
    @FormInputField()
    private String className;
    /**
     * 请求方法
     */
    @FormBaseField(title = "方法")
    @FormInputField()
    private String method;
    /**
     * 参数
     */
    @FormBaseField(title = "参数")
    @FormInputField()
    private String param;
    /**
     * 结果
     */
    @FormBaseField(title = "结果")
    @FormInputField()
    private String result;
    /**
     * 请求头
     */
    @FormBaseField(title = "请求头")
    @FormInputField()
    private String header;

}

